import request from '../index.js'

// 个人中心获取用户信息
export const getUserInfo = (params) => request.post("/spaceai/getUserinfo", params);
// 实名认证显示 error
export const getRealName = (params) => request.post("/spaceai/missionback", params);
// 实名认证
export const uploadRealName = (params) => request.post("/spaceai/mission", params);
// 邀请好友
export const inviteFriends = (params) => request.post("/spaceai/team_income", params);
// 邀请好友列表
export const inviteFriendsList = (params) => request.post("/spaceai/team_income2", params);
// 修改用户信息
export const uploadUserInfo = (params) => request.post("/spaceai/updateUser", params);
// 上传
export const uploadFile = (params) => request.post("/spaceai/uploadfile", params , {
    headers: {
        'Content-Type': 'multipart/form-data'
    }
});
// 更改用戶信息
export const updateUserInfo = (params) => request.post("/spaceai/updateUser", params);
// 修改交易密码
export const updateTradePassword = (params) => request.post("/user/changePayPassword", params);

// 获取币种汇率
export const getCurrencyRate = (params) => request.post("/spaceai/currency_list", params);
// 身份验证
export const authentication = (params) => request.post("/google/googleAuth", params);
// 验证谷歌身份验证码
export const verifyGoogleCode = (params) => request.post("/google/check_code", params);
// 修改手机号 error
export const updatePhone = (params) => request.post("/user/changemobile", params);
// 修改币种
export const updateCurrency = (params) => request.post("/spaceai/currency_add", params);
// 历史记录tab标题
export const getHistoryTitle = (params) => request.post("/Newapi/getLogClass", params);
// 历史记录
export const getHistory = (params) => request.post("/spaceai/history", params);
// 充值页面
export const getRecharge = (params) => request.post("/spaceai/recharge", params);
// 提现页面（这里只有个获取余额的功能，主要信息改/Newapi/getWithdrawNetwork接口了）
export const getWithdraw = (params) => request.post("/spaceai/withdraw", params);
// 提现操作
export const withdraw = (params) => request.post("/spaceai/withdraw_do", params);
// 闪兑
export const getFlashExchange = (params) => request.post("/spaceai/light", params);
// 闪兑汇率查询
export const getFlashExchangeRate = (params) => request.post("/spaceai/light_rate", params);
// 闪兑操作
export const flashExchange = (params) => request.post("/spaceai/light_do", params);
// 财务列表
export const getFinanceList = (params) => request.post("/spaceai/record", params);
// 修改手机号
export const changeMobile = (params) => request.post("/user/changemobile", params);
// 充值前
export const getRechargeBefore = (params) => request.post("/spaceai/rechargeorder", params);
// 充值后--传递订单
export const getRechargeAfter = (params) => request.post("/spaceai/rechargeCallback", params);
// 充值详情
export const getRechargeDetail = (params) => request.post("/Newapi/recharge", params);
// 历史详情
export const getHistoryDetail = (params) => request.post("/Newapi/getHistoryDetail", params);